import {getRequest, postRequest, putRequest, deleteRequest, uploadFileRequest,postRequest2} from '@/utils/api';


export const addReportData=data=>postRequest('/reportdata/add',data);
export const getTableData = data => postRequest('/reportdata/list', data);
export const deleteTableData=data=>postRequest('/reportdata/delete',data);
export const editTableData=data=>postRequest('/reportdata/edit',data);

export const ListSysDictAndSQL=()=>postRequest2('/reportdata/sqlanddict');

export const ListSysDict=data=>postRequest('/reportdata/dict',data);
//批量执行SQL
export const totalRun=data=>postRequest('/reportdata/totalRun',data);